package orm;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Created by langdon on 2017/7/22.
 */
public class TeacherResult extends Result{

    @JsonProperty
    private Teacher teacher;

    public TeacherResult(){}

    public TeacherResult(int status, String msg,Teacher teacher){
        setStatus(status);
        setMsg(msg);
        setTeacher(teacher);
    }
    @JsonProperty
    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }
}
